import { useEffect } from 'react'
import { useLocation } from 'react-router-dom'

function useBeforeEach() {
	const location = useLocation()
	useEffect(() => {
		console.log('useBeforeEach', location.pathname)
	}, [location.pathname])
}

export default useBeforeEach
